/* Layout */
const Layout = resolve => require(['@/views/layout/Layout'], resolve);

const QuestionnaireRouterMap = {
  id: 0,
  path: '/questionnaire',
  component: Layout,
  name: '问卷调查',
  redirect: '/questionnaire/list',
  meta: {title: '问卷调查', icon: 'questionnaire', power: 'questionnaire'},
  alwaysShow: true,
  showMode: 'DEFAULT',
  children: [
    {
      id: -1,
      path: 'list',
      name: '问卷列表',
      component: resolve => require(['@/views/plugins/questionnaire/list'], resolve),
      meta: {title: '问卷列表', icon: 'orderlist', power: 'questionnaire.list'}
    }, {
      path: 'create',
      name: '创建问卷',
      component: resolve => require(['@/views/plugins/questionnaire/create'], resolve),
      meta: {title: '创建问卷', power: 'questionnaire.create'},
      hidden: true
    }, {
      path: 'answerSheet',
      name: '问卷调查-答卷列表',
      component: resolve => require(['@/views/plugins/questionnaire/answerSheet'], resolve),
      meta: {title: '答卷列表', icon: 'orderlist', power: 'questionnaire.answerSheet'},
      hidden: true
    }, {
      path: 'answerSheetDetails',
      name: '答卷详情',
      component: resolve => require(['@/views/plugins/questionnaire/answerSheetDetails'], resolve),
      meta: {title: '答卷详情', icon: 'orderlist', power: 'questionnaire.answerSheetDetails'},
      hidden: true
    }, {
      id: -1,
      path: 'setting',
      name: '问卷设置',
      component: resolve => require(['@/views/plugins/questionnaire/setting'], resolve),
      meta: {title: '问卷设置', icon: 'orderlist', power: 'questionnaire.setting'}
    }, {
      id: -1,
      path: 'statistics',
      name: '统计数据',
      component: resolve => require(['@/views/plugins/questionnaire/statistics'], resolve),
      meta: {title: '统计数据', icon: 'orderlist', power: 'questionnaire.statistics'}
    }
  ]
}

export default QuestionnaireRouterMap;
